/**
 * 
 */
package fr.gfi.alan.delahaye.beans;

import java.util.Date;

/**
 * @author adelahaye
 *
 */
public class RegularisationBean {

	private long idRegularisation;
	
	private String typeRegularisation;
	
	private Date date;
	
	private long poids;
	
	private String commentaire;

	/**
	 * 
	 */
	public RegularisationBean() {
	}

	/**
	 * @param idRegularisation
	 * @param typeRegularisation
	 * @param date
	 * @param poids
	 * @param commentaire
	 */
	public RegularisationBean(long idRegularisation, String typeRegularisation,
			Date date, long poids, String commentaire) {
		this.idRegularisation = idRegularisation;
		this.typeRegularisation = typeRegularisation;
		this.date = date;
		this.poids = poids;
		this.commentaire = commentaire;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Regularisation [idRegularisation=");
		builder.append(idRegularisation);
		builder.append(", ");
		if (typeRegularisation != null) {
			builder.append("typeRegularisation=");
			builder.append(typeRegularisation);
			builder.append(", ");
		}
		if (date != null) {
			builder.append("date=");
			builder.append(date);
			builder.append(", ");
		}
		builder.append("poids=");
		builder.append(poids);
		builder.append(", ");
		if (commentaire != null) {
			builder.append("commentaire=");
			builder.append(commentaire);
		}
		builder.append("]");
		return builder.toString();
	}
	
	/**
	 * @return the idRegularisation
	 */
	public long getIdRegularisation() {
		return idRegularisation;
	}

	/**
	 * @param idRegularisation the idRegularisation to set
	 */
	public void setIdRegularisation(long idRegularisation) {
		this.idRegularisation = idRegularisation;
	}

	/**
	 * @return the typeRegularisation
	 */
	public String getTypeRegularisation() {
		return typeRegularisation;
	}

	/**
	 * @param typeRegularisation the typeRegularisation to set
	 */
	public void setTypeRegularisation(String typeRegularisation) {
		this.typeRegularisation = typeRegularisation;
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return the poids
	 */
	public long getPoids() {
		return poids;
	}

	/**
	 * @param poids the poids to set
	 */
	public void setPoids(long poids) {
		this.poids = poids;
	}

	/**
	 * @return the commentaire
	 */
	public String getCommentaire() {
		return commentaire;
	}

	/**
	 * @param commentaire the commentaire to set
	 */
	public void setCommentaire(String commentaire) {
		this.commentaire = commentaire;
	}

}
